# 字符串类型
name = "张三"
# 整型变量
age = 18
# 浮点型变量
height = 180.0
# 布尔型变量
handsome = True

print("height: ", height)
print(type(height))

# 修改值即可改类型
height = 190
print(type(height))
age = 19.5
print(type(age))

# ---------------------------------
# 非法的变量名
# 123abc = 123
# sd-df = 123
# for = 123
# itcast.cn = 123
# 合法的
user_name = "abc"
userName = "BCD"
USERNAME = "aaa"

print("--------------------------------")
a = 5
b = 2
print(a + b)
print(a - b)
print(a * b)
print(a / b)
print(a // b)
print(a % b)
print(a ** b)

print("-------------------------------")
pwd = "aaaaaaaaaaaaa"
# 字符串可以拼接
print(user_name + pwd)
# 字符串可以和数字相乘，重复n次
print(userName * a)

# 字符串不可以和数字进行其他运算
# print(userName + a)
# print(userName - a)

